package com.wendellup.urltest.v7_127;

import java.io.IOException;
import java.util.HashMap;

import com.wendellup.http.HttpRequester;
import com.wendellup.http.HttpRespons;

public class Test {

	/**@Description: TODO 
	 * @param args   
	 * @return void     
	 * @throws IOException 
	 * @throws
	 * @Author yuchao
	 * @Create Date  2014-1-9
	 * @Modified by none
	 * @Modified Date 
	 */

	public static void main(String[] args) throws IOException {
//		String line = "(get) | 分类列表 | http://open.play.cn/api/v2/mobile/channel/content.json?channel_id=1000&terminal_id=100&current_page=0&rows_of_page=20&imsi=1111";
//		String[] strs = line.split("\\|");
//		System.out.println(strs.length);
		String urlStr = "http://open.play.cn/api/v2/mobile/channel/content.json?channel_id=701&terminal_id=100&current_page=0&rows_of_page=20&imsi=1111";
////		String urlStr = "http://localhost:8080/web_test2/aa";
////		String urlStr = "http://wendellup.duapp.com/weather/all";
////		String urlStr = "http://open.play.cn/api/v2/mobile/game/check_version.json?terminal_id=1";
//		String method = "GET";
//		String charset = "utf-8";
//		HashMap<HeaderProperty, String> header = null;
		HashMap<String, String> params = new HashMap<String, String>();
//		HashMap<HeaderProperty, String> response = null;
		params.put("channel_id", "1000");
		params.put("terminal_id", "100");
		params.put("current_page", "0");
		params.put("rows_of_page", "20");
////		String str = WebUtils.httpStream(urlStr, method, charset, header, params, response).toString();
		HttpRespons httpRespons = new HttpRequester().sendGet(urlStr, params);
		System.out.println(httpRespons.getContent());
	}

}
